package com.atguigu.eduorder.Client;

import com.atguigu.commonutils.OrderVo.OrderCourse;
import com.atguigu.eduorder.Client.hystrix.EduImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author cyt
 * @create 2020-06-02 16:13
 */
@Component
@FeignClient(name = "service-edu", fallback = EduImpl.class)
public interface EduClient {

    @GetMapping("/eduservice/course/getOrderCourseById/{id}")
    public OrderCourse getOrderCourseById(@PathVariable("id") String courseId);
}
